package org.tloss.web.editor.sql.editors;

import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;

public class CompareDialogEditor extends Dialog {
	TreeViewer treeViewer;

	public CompareDialogEditor(Shell parentShell) {
		super(parentShell);
		setShellStyle(SWT.DIALOG_TRIM | SWT.RESIZE | SWT.MAX
				| SWT.APPLICATION_MODAL);

	}

	@Override
	protected Point getInitialSize() {
		return new Point(510, 540);
	}

	protected Control createDialogArea(Composite parent) {
		return null;
		// return composite;
	}

	public String upperFirstChar(String str) {
		if (str != null) {
			if (str.length() == 1) {
				return str.toUpperCase();
			} else {
				return str.substring(0, 1).toUpperCase() + str.substring(1);
			}
		}
		return "";
	}

	@Override
	protected void okPressed() {

		super.okPressed();
	}
}
